import request from '@/utils/request'


export function publicList(data) {
  return request({
    url: '/public/page',
    method: 'post',
    data
  })
}

export function publiGetcList() {
  return request({
    url: '/public/list',
    method: 'get',
  })
}




export function delPublic(id){
  return request({
    url: "/public/delete",
    method: "get",
    params: { id } 
  });
}



export function updatePublic(data) {
  return request({
    url: "/public/update",
    method: "post",
    data
  });
}

export function addPublic(data) {
  return request({
    url: "/public/add",
    method: "post",
    data
  });
}

export function getPublic(id) {
  return request({
    url: "/public/get",
    method: "get",
    params: { id } 
  });
}